import request from '@/utils/request'

// 查询拼团点管理列表
export function listCommunity(query) {
  return request({
    url: '/ruoyi-manage/community/pageShow',
    method: 'get',
    params: query
  })
}

// 查询拼团点管理详细
export function getCommunity(id) {
  return request({
    url: '/ruoyi-manage/community/' + id,
    method: 'get'
  })
}

// 新增拼团点管理
export function addCommunity(data) {
  return request({
    url: '/system/community',
    method: 'post',
    data: data
  })
}

// 修改拼团点管理
export function updateCommunity(data) {
  return request({
    url: '/ruoyi-manage/community/put',
    method: 'put',
    data: data
  })
}

// 删除拼团点管理
export function delCommunity(id) {
  return request({
    url: '/system/community/' + id,
    method: 'delete'
  })
}
// 查询全部的leader
export function listLeader() {
  return request({
    url: '/ruoyi-manage/leader/show',
    method: 'get'
  })
}

//下拉菜单
export function All(){
  return request({
    url:'/ruoyi-manage/community/All',
    method:'get'
  })
}
